package java_objects.method_arguments;

public class SwapObject {

	Point p1 = new Point(10,20);
	Point p2 = new Point(30,40);

	void swap(Point a, Point b) {
		Point temp;
		temp = a;
		a = b;
		b = temp;
	}
	void swapTest() {
		swap(p1, p2);
		System.out.print("Point 1 :");
		p1.print();
		System.out.print("Point 2 :");
		p2.print();
		
	}

	public static void main(String[] args) {
		new SwapObject().swapTest();
	}
}
